using UnityEngine;
using System.Collections;
using System;
using COC.Character;
namespace COC.CEvent
{
		[Serializable]
		public class CEventHandler
		{
				///事件类型
				public CEventType type{ private set; get; }

				/// 事件源.
				public BaseBehaviour source{ get; set; }

				public  int action{ get; set; }
				public delegate bool DoHandler ();

		        public object obj; //消息附加的内容
				public CNotification notification{ get; private set; }

				public CEventHandler (CEventType type, BaseBehaviour source, int action)
				{
						this.type = type;
						this.source = source;
						this.action = action;
				}
	
				public CEventHandler ()
				{
				}
		}

}